﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InstrumentCheck.Module
{
    [Serializable]
    public class Item
    {

        #region 属于Item的信息
        /// <summary>
        /// 资产类别
        /// </summary>
        public AssetType AssetType { set; get; }

        /// <summary>
        /// 资产编号
        /// </summary>
        public string AssetNO { set; get; }

        /// <summary>
        /// 保管人
        /// </summary>
        public User Keeper { set; get; }

        /// <summary>
        /// 品名
        /// </summary>
        public string ChiName { set; get; }

        /// <summary>
        /// 厂牌
        /// </summary>
        public string Brand { set; get; }

        /// <summary>
        /// 规格
        /// </summary>
        public string Spec { set; get; }

        /// <summary>
        /// 型号
        /// </summary>
        public string ModelNO { set; get; }

        /// <summary>
        /// PR单号
        /// </summary>
        public string PRNO { set; get; }

        /// <summary>
        /// 购买日期
        /// </summary>
        public DateTime ? BuyDate { set; get; }

        /// <summary>
        /// 购买币别
        /// </summary>
        public CurrencyType ? CurrencyType { set; get; }

        /// <summary>
        /// 购买金额
        /// </summary>
        public double ? BuyAmount { set; get; }

        /// <summary>
        /// 首校日期
        /// </summary>
        public DateTime ? FirstCorrectTime { set; get; }

        /// <summary>
        /// 校验币别
        /// </summary>
        public CurrencyType ? CorrectCurrencyType { set; get; }

        /// <summary>
        /// 校验费用
        /// </summary>
        public double ? CorrectAmount { set; get; }

        /// <summary>
        /// 应校日期
        /// </summary>
        public DateTime ? NeedCorrectDate { set; get; }

        /// <summary>
        /// 校验周期
        /// </summary>
        public CorrectCycle ? CorrectCycle { set; get; }

        /// <summary>
        /// 目前状态
        /// </summary>
        public AssetStatus ? CurrentStatus { set; get; }

        /// <summary>
        /// 校验区分（内校和外校）
        /// </summary>
        public CorrectType ? CorrectType { set; get; }

        /// <summary>
        /// 附件（检验报告/免检申请书/履历卡）
        /// </summary>
        public List<Attach> ItemAttachment { set; get; }

        /// <summary>
        /// 校验结果
        /// </summary>
        public CorrectResult ? CorrectResult { set; get; }

        /// <summary>
        /// 允收标准
        /// </summary>
        public string Standard { set; get; }

        /// <summary>
        /// 备注栏
        /// </summary>
        public string Remark { set; get; }

        /// <summary>
        /// 送校狀態
        /// </summary>
        public int ProcessStatus { set; get; }

        /// <summary>
        /// 创建者
        /// </summary>
        public User Creater { set; get; }

        /// <summary>
        /// 修改者
        /// </summary>
        public User ModifyBy { set; get; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime CreateDate { set; get; }
        #endregion
    }
}
